package com.ruoyi.message.domain.vo;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * @author Bandit
 * @createTime 2022/11/08 13:05:22
 */
public class MessageVo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 消息id */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;


    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 消息类型 */
    @Excel(name = "消息类型")
    private Integer type;

    /** 发送者id */
    @Excel(name = "发送者id")
    private Long senderId;

    /** 发送者姓名 */
    @Excel(name = "发送者姓名")
    private String senderName;

    /**
     * 接收者ID集合
     */
    private List<Long> receiverIds;

    /** 已读数 */
    @Excel(name = "已读数")
    private Long readCount;

    /** 接收人数 */
    @Excel(name = "接收人数")
    private Long receiveUserCount;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getSenderId() {
        return senderId;
    }

    public void setSenderId(Long senderId) {
        this.senderId = senderId;
    }

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public Long getReadCount() {
        return readCount;
    }

    public void setReadCount(Long readCount) {
        this.readCount = readCount;
    }

    public Long getReceiveUserCount() {
        return receiveUserCount;
    }

    public void setReceiveUserCount(Long receiveUserCount) {
        this.receiveUserCount = receiveUserCount;
    }

    public List<Long> getReceiverIds() {
        return receiverIds;
    }

    public void setReceiverIds(List<Long> receiverIds) {
        this.receiverIds = receiverIds;
    }

    @Override
    public String toString() {
        return "MessageVo{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", type=" + type +
                ", senderId=" + senderId +
                ", senderName='" + senderName + '\'' +
                ", readCount=" + readCount +
                ", receiveUserCount=" + receiveUserCount +
                '}';
    }
}
